package com.itheima.homework.homework2;

/**
 * @author
 * 圆类
 */
public class Circle implements ShapePara {

    /**
     * 圆周
     */
    static Double PI = 3.14;

    /**
     * 半径
     */
    public Double radius;

    @Override
    public int getArea() {
        int area = 10;
        int p = (int) (PI*2*radius);

        return p;
    }

    @Override
    public int getCircumferenceI() {
        int radius = 10;
        int r =(int)(PI*radius*radius);

        return r;
    }

    public static Double getPI() {
        return PI;
    }

    public static void setPI(Double PI) {
        Circle.PI = PI;
    }

    public Double getRadius() {
        return radius;
    }

    public void setRadius(Double radius) {
        this.radius = radius;
    }
}
